/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_dmap_designtreeDetachedCriteria extends
	AbstractORMDetachedCriteria {
    public final IntegerExpression id;

    public T_dmap_designtreeDetachedCriteria() {
	super(org.testis.orm.classes.T_dmap_designtree.class,
		org.testis.orm.classes.T_dmap_designtreeCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
    }

    public T_dmap_designtreeDetachedCriteria(DetachedCriteria aDetachedCriteria) {
	super(aDetachedCriteria,
		org.testis.orm.classes.T_dmap_designtreeCriteria.class);
	id = new IntegerExpression("id", this.getDetachedCriteria());
    }

    public T_dmap_designtreeDetachedCriteria createParentCriteria() {
	return new T_dmap_designtreeDetachedCriteria(createCriteria("Parent"));
    }

    public T_dmap_objectsDetachedCriteria createObjectCriteria() {
	return new T_dmap_objectsDetachedCriteria(createCriteria("Object"));
    }

    public T_dmap_designtreeDetachedCriteria createCloneCriteria() {
	return new T_dmap_designtreeDetachedCriteria(createCriteria("Clone"));
    }

    public T_bed_firmwareDetachedCriteria createFirmwareCriteria() {
	return new T_bed_firmwareDetachedCriteria(createCriteria("Firmware"));
    }

    public T_dmap_designtreeDetachedCriteria createPreviousNodeCriteria() {
	return new T_dmap_designtreeDetachedCriteria(
		createCriteria("PreviousNode"));
    }

    public T_bed_firmwareDetachedCriteria createT_bed_firmwareCriteria() {
	return new T_bed_firmwareDetachedCriteria(
		createCriteria("ORM_T_bed_firmware"));
    }

    public T_dmap_designtreeDetachedCriteria createT_dmap_designtreeCriteria() {
	return new T_dmap_designtreeDetachedCriteria(
		createCriteria("ORM_T_dmap_designtree"));
    }

    public T_dmap_designtreeDetachedCriteria createT_dmap_designtree1Criteria() {
	return new T_dmap_designtreeDetachedCriteria(
		createCriteria("ORM_T_dmap_designtree1"));
    }

    public T_dmap_designtreeDetachedCriteria createT_dmap_designtree2Criteria() {
	return new T_dmap_designtreeDetachedCriteria(
		createCriteria("ORM_T_dmap_designtree2"));
    }

    public T_dmap_designtree uniqueT_dmap_designtree(PersistentSession session) {
	return (T_dmap_designtree) super.createExecutableCriteria(session)
		.uniqueResult();
    }

    public T_dmap_designtree[] listT_dmap_designtree(PersistentSession session) {
	List list = super.createExecutableCriteria(session).list();
	return (T_dmap_designtree[]) list.toArray(new T_dmap_designtree[list
		.size()]);
    }
}
